package mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import pojo.Movie;

import java.util.List;

public interface MovieMapper {
    List<Movie> limit(@Param("pageNo") Integer pageNo,@Param("pageSize") Integer pageSize);
    int add(Movie movie);
    int Count();
    @Select("select count(*) from movie where movieName = #{movieName}")
    Integer selectMovieName(@Param("movieName") String movieName);
}
